//
//  YHRequest+Promise.h
//  YHNetwork
//
//  Created by 000 on 2021/12/26.
//

#import "YHRequest.h"
#import "YHRequest+Config.h"
#import <coobjc/COPromise.h>
#import <coobjc/coobjc.h>

NS_ASSUME_NONNULL_BEGIN

@interface YHRequest<ResponseClass> (Promise)

- (COPromise<ResponseClass> *)promise;

/// co_launch
- (ResponseClass _Nullable)await;

@end





NS_ASSUME_NONNULL_END
